<?php

namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Livecourse extends Model
{
    protected $table = 'live_course';
    protected $primaryKey = 'id';
    protected $fillable = ['name','stream_id','cover_img','start_at','end_at','desc'];
    use SoftDeletes;
    protected $dates = ['deleted_at'];
    public function stream(){
        return $this->hasOne('\App\Http\Models\Stream','stream_id','stream_id');
    }

}
